package cn.deschen.eshop.user.dto.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * @Author hanbin_chen
 * @Description 后台用户注册请求参数
 * @DateTime 2021/2/22 14:29
 * @Version V1.0.0
 */
@Data
public class UmsAdminRegisterReqDto {

    /**
     * 用户名
     */
    @NotBlank
    @ApiModelProperty(value = "用户名", required = true)
    private String username;

    /**
     * 密码
     */
    @NotBlank
    @ApiModelProperty(value = "密码", required = true)
    private String password;

    /**
     * 用户头像
     */
    @ApiModelProperty(value = "用户头像")
    private String icon;

    /**
     * 电子邮箱
     */
    @Email
    @ApiModelProperty(value = "电子邮箱", required = true)
    private String email;

    /**
     * 用户昵称
     */
    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String note;
}
